
let fs = require('fs')

module.exports = {
    sleep(times) {
        let now = new Date();
        const exit = now.getTime() + times;
        while (true) {
            now = new Date();
            if (now.getTime() > exit) {
                return;
            }
        }
    }
}